from django.conf.urls import patterns, url
#from news.views import *

urlpatterns = patterns(
    'news.views',
    url(
        r'^articles/(\d{4})/$',
        'year_archive',
        name='index'
        ),
    url(
        r'^articles/(\d{4})/(\d{2})/$',
        'month_archive',
        name="archive_month"),
    url(
        r'^articles/(\d{4})/(\d{2})/(\d+)/$',
        'day_article',
        name="archive_day"
        ),
    url(
        r'^uploadfile/$',
        'upload_file',
        name="uploadfile"
        ),
    url(
        r'^login/$',
        'login',
        name="login"
        ),
    url(
        r'^logout/$',
        'logout',
        name="logout"
        )
    )
